package 状态机.请假demo.handler.impl.annualleavespecifichandler.ceo;

import 状态机.请假demo.entity.LeavePermit;
import 状态机.请假demo.handler.CommonStatusHandler;


public class CEODisAgreeAnnualLeavePermitStatusHandler extends CommonStatusHandler {

    @Override
    protected void doSpecificHandler(LeavePermit leavePermit) {
        System.out.println(String.format("user:%s--CEO不同意%s--leavePermit.status is:%s",
                leavePermit.getUser(),
                leavePermit.getLeavePermitType().getMemo(),
                leavePermit.getStatus().getStatus()));
    }

    /**
     * 既然不同意请假，就需要终止流程
     * @param leavePermit
     */
    @Override
    public void after(LeavePermit leavePermit) {
        return;
    }
}
